﻿<%@ Page Title="Query User" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="FindUser.aspx.cs" Inherits="IFD2.FindUser" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <form id="form1" runat="server" role="form" class="form-inline" defaultbutton="lbtnQuery">
    <div class="container-fluid body-content" style="width:100%;">

    <div class="row">
        <div class="col-sm-2 well well-sm">
            <h5><asp:Literal ID="litTitle" runat="server" meta:resourcekey="tipPageTitle"></asp:Literal></h5>
            <div class="form-group">
            <asp:Label ID="Label1" runat="server" Text="User ID:" meta:resourcekey="UserID"></asp:Label>
            <asp:TextBox ID="txtUid" runat="server" CssClass="form-control input-sm" Width="100%" MaxLength="20"></asp:TextBox>
            </div>
            <br class="hidden-xs"/><br class="hidden-xs"/>
            <asp:LinkButton ID="lbtnQuery" runat="server" CssClass="form-control input-sm btn-primary text-center" Width="100%" ToolTip="" meta:resourcekey="tipQuery" OnClick="lbtnQuery_Click"> <span class="glyphicon glyphicon-search" style="font-size:large;"></span></asp:LinkButton>
            <asp:Button ID="btnLogs" runat="server" CssClass="form-control input-sm btn-primary text-center" Width="100%" OnClick="btnLogs_Click" Text="Logs..."  meta:resourcekey="Logs" />
            <p></p><%--没有此行(或&nbsp;)，上面的按钮在手机模式(xs)下，只有上半部可以点击！--%>
        </div>

        <div class="col-sm-10 well well-sm">
            <div class="panel">
                <div class="panel-heading btn-primary">
                    <h6 class="panel-title" id="section-2"><asp:Literal ID="Literal1" runat="server" meta:resourcekey="tipUserInfo"></asp:Literal></h6>
                </div>
                <div class="panel-body">
                    <div class="table-responsive">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" style="min-width:800px;width:100%;" class="table-hover"
                            CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None">
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:BoundField DataField="id" HeaderText="id" SortExpression="id"  meta:resourcekey="id" />
                                <asp:BoundField DataField="name" HeaderText="name" SortExpression="name"  meta:resourcekey="name1" />
                                <asp:BoundField DataField="identification" HeaderText="identification" SortExpression="identification"  meta:resourcekey="identification" />
                                <asp:BoundField DataField="airline" HeaderText="airline" SortExpression="airline"  meta:resourcekey="airline" />
                                <asp:BoundField DataField="owner_office" HeaderText="owner_office" SortExpression="owner_office"  meta:resourcekey="owner_office" />
                                <asp:BoundField DataField="auth_office" HeaderText="auth_office" SortExpression="auth_office"  meta:resourcekey="auth_office" />
                                <asp:BoundField DataField="type" HeaderText="type" SortExpression="type"  meta:resourcekey="type" />
                                <asp:BoundField DataField="role" HeaderText="role" SortExpression="role"  meta:resourcekey="role" />
                                <asp:BoundField DataField="status" HeaderText="status" SortExpression="status"  meta:resourcekey="status" />
                                <asp:BoundField DataField="last_logon" HeaderText="last_logon" SortExpression="last_logon"  meta:resourcekey="last_logon" />
                            </Columns>
                            <EditRowStyle BackColor="#2461BF" />
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#EFF3FB" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <SortedAscendingCellStyle BackColor="#F5F7FB" />
                            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                            <SortedDescendingCellStyle BackColor="#E9EBEF" />
                            <SortedDescendingHeaderStyle BackColor="#4870BE" />
                        </asp:GridView>

                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>" SelectCommand="bll_user_get_info" SelectCommandType="StoredProcedure" DataSourceMode="DataReader">
                            <SelectParameters>
                                <asp:SessionParameter Name="airline" SessionField="AIRLINE" Type="String" />
                                <asp:ControlParameter ControlID="txtUid" Name="uid" PropertyName="Text" Type="String" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </div>
                    
                </div>
            </div>
        </div>
    </div>

    </div>
    </form>
</asp:Content>
